// @ts-nocheck
// @ts-nocheck
// @ts-nocheck
// @ts-nocheck
import tabbarItems from '../../common/datas/tabbarItem.js';
import router from '@system.router';
export default {
    data:{
        tabbarItems
    },
    props:{
        index:{
            type:Number,
            default(){
                return 0;
            }
        }
    },
    jump(index){
        //this.tabbarItems.forEach((item,index) => {
        //    item.img = tabbarItems[index].img;
        //});
        //this.tabbarItems[index].img = this.tabbarItems[index].simg;
        switch(index){
            case 0:
                router.push({
                    uri:"pages/second/second",
                    params:{
                        info:"这是路由传递的参数"
                    }
                });
                break;
            case 1:
                router.push({
                    uri:"pages/three/three",
                    params:{
                        info:"这是路由传递的参数"
                    }
                });
                break;
            case 2:
                router.push({
                    uri:"pages/page1/page1",
                    params:{
                        info:"这是路由传递的参数"
                    }
                });
                break;
            case 3:
                router.push({
                    uri:"pages/page2/page2",
                    params:{
                        info:"这是路由传递的参数"
                    }
                });
                break;

        }
    },

}